const { injectBabelPlugin } = require('react-app-rewired');

  module.exports = function override(config, env) {
   config = injectBabelPlugin(['import', { libraryName: 'antd-mobile', libraryDirectory: 'es', style: 'css' }], config);

   config = injectBabelPlugin("transform-decorators-legacy", config)
    return config;
  };